/**
 * Project Name:springBoot-serviceImpl
 * File Name:ValidController.java
 * Package Name:com.libra.controller
 * Date:2018年8月3日下午2:41:24
 * Copyright (c) 2018, wangzhch All Rights Reserved.
 *
*/

package com.libra.serviceImp;

import org.springframework.stereotype.Service;

import com.libra.model.vo.ResponseData;
import com.libra.model.vo.TestValidRequest;
import com.libra.service.TestValidService;
import com.libra.service.exception.BussinessExection;
import com.libra.service.utils.ValidationUtils;

/**
 * ClassName:ValidController <br/>
 * Function: TODO ADD FUNCTION. <br/>
 * Reason:	 TODO ADD REASON. <br/>
 * Date:     2018年8月3日 下午2:41:24 <br/>
 * @author   wangzhch
 * @version  
 * @since    JDK 1.8
 * @see 	 
 */
@Service
//@Component
public class TestValidServiceImpl implements TestValidService{

	@Override
	public ResponseData testValid(TestValidRequest testValidRequest) throws BussinessExection {
		//数据校验
		String msg = ValidationUtils.validate(testValidRequest);
		System.out.println("数据校验:"+msg);
		return ResponseData.success();
	}
	public static void main(String[] args) {
		String num = "2018082411182141400008926025";
		System.out.println(num.length());
	}
}

